package life.kenny.community.mapper;

import life.kenny.community.dto.QuestionQueryDTO;
import life.kenny.community.model.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionExtMapper {
    int incView(@Param("record") Question question);

    int incCommentCount(@Param("record") Question question);

    List<Question> selectRelated(Question question);

    List<Question> selectBySearch(QuestionQueryDTO questionQueryDTO);

    Integer countBySearch(QuestionQueryDTO questionQueryDTO);
}
